import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home/home'
import Down from '@/components/Down/down'
import personal from '@/components/personal/personal'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      component: Login
    },
    {
      path: '/Login',
      name: 'Login',
      component: Login
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      redirect: '/Down',
      children: [
        {
          path: '/Down',
          component: Down
        },
        {
          path: '/personal',
          component: personal
        }
      ]
    }
  ]
})

export default router
